package com.yy.bean;

import java.io.IOException;
import java.io.Serializable;

import com.yy.app.AppException;
import com.yy.utils.GsonRequestUtils;

/**
 * 欢迎界面实体类
 */
@SuppressWarnings("serial")
public class WellcomeImage implements Serializable{
	
	public final static String UTF8 = "UTF-8";
	public final static String NODE_ROOT = "Mgear";
	
	private boolean update;//是否更新
	private String startDate;//开始时间
	private String endDate;//结束时间
	private String downloadUrl;//图片下载地址
	
	public boolean isUpdate() {
		return update;
	}
	public void setUpdate(boolean update) {
		this.update = update;
	}
	
	public String getStartDate() {
		return startDate;
	}
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}
	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

	public static WellcomeImage parse(String strjson) throws IOException, AppException {
		WellcomeImage wel = new WellcomeImage();
		wel=GsonRequestUtils.gson.fromJson(strjson, WellcomeImage.class);
		return wel;
	}

	@Override
	public String toString() {
		return "WellcomeImage [update=" + update + ", startDate=" + startDate
				+ ", endDate=" + endDate + ", downloadUrl=" + downloadUrl + "]";
	}
	
}
